package communicate_interface;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.List;
import server.TodoItem;

public interface ServerInterface extends Remote{
    
    public TodoItem getTodo(int id) throws RemoteException;
    public List<TodoItem> getList(ClientInterface source) throws RemoteException;
    public void disconnect(ClientInterface source) throws RemoteException;
    public TodoItem updateTodo(TodoItem item,ClientInterface source) throws RemoteException;
    public boolean deleteTodo(TodoItem item,ClientInterface source) throws RemoteException;
    
}
